package kayao.client.scene.objects;

import kayao.client.R;

import com.chopsticks3d.scene.Material;
import com.chopsticks3d.scene.Mesh;
import com.chopsticks3d.scene.MeshNode;
import com.chopsticks3d.scene.SceneNode;
import com.chopsticks3d.scene.Texture;
import com.chopsticks3d.scene.shape.Plane;

public class RoadNode extends SceneNode {
	public static final Texture ROAD_HORIZONTAL = new Texture(R.drawable.road_horizontal);
	public static final Texture ROAD_VERTICAL = new Texture(R.drawable.road_vertical);
	public static final Texture ROAD_CROSSING = new Texture(R.drawable.road_crossing);
	public static final Texture ROAD_EMPTY = new Texture(R.drawable.road_empty);
	private static final Mesh MESH_ROAD = new Plane();
	
	private MeshNode mRoadNode;
	
	public RoadNode(Texture texture) {
		Material groundMaterial = new Material();
		groundMaterial.setAmbient(1, 1, 1, 1);
		
		mRoadNode = new MeshNode(MESH_ROAD, texture, groundMaterial);
		mRoadNode.setRotationX(-90);
		
		addChild(mRoadNode);
	}
}
